﻿using FriendAnalyzer.Infrastructure.Facebook.DataAccess;
using FriendAnalyzer.Infrastructure.Facebook.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FriendAnalyzer.Infrastructure.Facebook.Repositories
{
    internal class UserRepository
    {
        private FacebookConnection _connection;

        public UserRepository(FacebookConnection connection)
        {
            _connection = connection;
        }

        public async Task<UserProfile> GetUserProfile()
        {
            var profile = await _connection.ExecuteGraphApiCall<UserProfile>("/me");

            return profile;
        }
    }
}